package dexter.core.common;

import dexter.net.msg.common.ResponseParams;

public class HostResult implements ResponseParams {

	private static final long serialVersionUID = -5458964230763663163L;
	
	private String url;
	private boolean ok;
	
	public HostResult(String url, boolean ok) {
		super();
		this.url = url;
		this.ok = ok;
	}
	    
    public String getUrl() {
		return url;
	}

	public boolean isOk() {
		return ok;
	}

	public String toString() {
    	String s = "";
    	if (ok) s+= "ok";
    	else s+= "fail";
    	return s+=" -> "+url;
    }

}